/**
 * 基础路由
 * @type { *[] }
 */

const constantRouterMap = [
  {
    path: '/',
    name: 'root',
    redirect: { name: 'Index' },
    children: [
      {
        path: '/index',
        name: 'Index',
        component: () => import('@/views/Index.vue')
      },
    ]
  },
  {
    path: '/example',
    name: 'example',
    redirect: { path: '/example/index' },
    component: () => import('@/components/BlankLayout.vue'),
    children: [
      {
        path: '/example/index',
        component: () => import('@/views/example/index.vue')
      },
      {
        path: '/example/weight',
        meta: { title: '中盛称重' },
        component: () => import('@/views/example/weight.vue')
      },
      {
        path: '/example/io',
        meta: { title: '中盛IO' },
        component: () => import('@/views/example/io.vue')
      },
    ]
  }
]

export default constantRouterMap